package course.ya.doc.from.code.model.lexer.project;

import java.io.IOException;
import java.util.TreeMap;

import org.xml.sax.SAXException;

public class KeyWords 
{
	private TreeMap<String,Integer> KeyWords;
	
	public KeyWords(XMLParser in) 
			throws SAXException, IOException
	{
		KeyWords=in.ReKeyWords(in.GetNameFile());
		
	}
	public int ValueKey(String key)
	{
		
		if(KeyWords.get(key)!=null)
		{
			return KeyWords.get(key);
		}
		return -1;
	}
}
